package toanstt.com.gameplay;

public class History 
{
	int n;
	int[] x;
	int[] y;
	int[] val;
	boolean[] isadd;
	public History()
	{
		n=0;
		x = new int[20000];
		y = new int[20000];
		isadd = new boolean[20000];
		val = new int[20000];
	}
	public void Add(int x1,int y1,int vals)
	{
		isadd[n] = true;
		val[n] = vals;
		x[n] = x1;
		y[n] = y1;
		n++;
	}
	public void Remove(int x1,int y1,int vals)
	{
		isadd[n] = false;
		val[n] = vals;
		x[n] = x1;
		y[n] = y1;
		n++;
	}
	public void Pop()
	{
		
	}
	public void NewGame() 
	{
		n=0;
		
	}
	
}
